Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support dynamic model #175

Merged
merged 5 commits into from
Aug 20, 2020
Merged

support dynamic model #175

merged 5 commits into from
Aug 20, 2020

Conversation

koxudaxi
Copy link
Owner

This PR supports a dynamic model which is created with create_model()

Screen Shots

Screenshot_2020-08-18_05-35-34
Screenshot_2020-08-18_05-35-22

Related Issues

#169

@koxudaxi koxudaxi self-assigned this Aug 17, 2020
@codecov
Copy link

codecov bot commented Aug 17, 2020

Codecov Report

Merging #175 into master will decrease coverage by 6.83%.
The diff coverage is 8.59%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master     #175      +/-   ##
============================================
- Coverage     69.90%   63.07%   -6.84%     
- Complexity      176      179       +3     
============================================
  Files            17       20       +3     
  Lines           987     1105     +118     
  Branches        303      340      +37     
============================================
+ Hits            690      697       +7     
- Misses          139      248     +109     
- Partials        158      160       +2     
Impacted Files Coverage Δ Complexity Δ
src/com/koxudaxi/pydantic/PydanticDynamicModel.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
...koxudaxi/pydantic/PydanticDynamicModelClassType.kt 0.00% <0.00%> (ø) 0.00 <0.00> (?)
src/com/koxudaxi/pydantic/PydanticTypeProvider.kt 48.87% <6.30%> (-28.10%) 72.00 <4.00> (ø)
...axi/pydantic/PydanticDynamicModelMemberProvider.kt 33.33% <33.33%> (ø) 3.00 <3.00> (?)
src/com/koxudaxi/pydantic/Pydantic.kt 68.94% <40.00%> (-0.49%) 0.00 <0.00> (ø)
src/com/koxudaxi/pydantic/PydanticConfigurable.kt 0.00% <0.00%> (ø) 0.00% <0.00%> (ø%)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4d659e9...cc60823. Read the comment docs.

@koxudaxi koxudaxi marked this pull request as draft August 18, 2020 17:49
@koxudaxi koxudaxi marked this pull request as ready for review August 20, 2020 17:05
@koxudaxi koxudaxi changed the title [WIP] support dynamic model support dynamic model Aug 20, 2020
@koxudaxi koxudaxi merged commit 21f23a7 into master Aug 20, 2020
@koxudaxi koxudaxi deleted the support_dynamic_model branch August 20, 2020 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant